package com.minelx.autocha;

import org.openqa.selenium.WebElement;

import java.util.Objects;
import java.util.function.Predicate;

public class WebElements {
	public static Predicate<WebElement> attribute(String key, String value) {
		return element -> Objects.equals(element.getAttribute(key), value);
	}
}
